<?php echo '新锐创想设计 请支持正版授权产品 <a href="http://addon.discuz.com/?@xinrui">http://addon.discuz.com/?@xinrui</a>';exit;?>
<!--{template touch/common/header}-->
<header class="header">
	<a class="goBack fl" href="javascript:history.back()">返回</a>
	<a class="topShare fr" href="#viewShare">分享</a>
	<h1>资讯详情</h1>
</header>

<div class="container">
	<div id="pt">
		<a href="$_G[setting][navs][1][filename]">{lang nav_index}</a> <em>&rsaquo;</em>
		<!--{loop $cat[ups] $value}-->
			<a href="{echo getportalcategoryurl($value[catid])}">$value[catname]</a><em>&rsaquo;</em>
		<!--{/loop}-->
		<a href="{echo getportalcategoryurl($cat[catid])}">$cat[catname]</a> <em>&rsaquo;</em>
		{lang view_content}
	</div>   
	<div class="article_view pb">
		<div class="article_tit">
			<h1>$article[title] <!--{if $article['status'] == 1}-->({lang moderate_need})<!--{elseif $article['status'] == 2}-->({lang ignored})<!--{/if}--></h1>
			<p>
				<span class="fr">$article[dateline]</span>
				<a href="home.php?mod=space&uid=$article[uid]">$article[username]</a>
				{lang view_views}：<em id="_viewnum"><!--{if $article[viewnum] > 0}-->$article[viewnum]<!--{else}-->0<!--{/if}--></em>
				{lang view_comments}：<!--{if $article[commentnum] > 0}--><a href="$common_url" title="{lang view_all_comments}"><em id="_commentnum">$article[commentnum]</em></a><!--{else}-->0<!--{/if}-->
			</p>
		</div>
		<div id="article_content" class="article_con">$content[content]</div>
		<!--{if $multi}--><div class="cfix pb">$multi</div><!--{/if}-->

		<!--资讯表态开始-->
		<div class="xr_declare">
			<table cellpadding="0" cellspacing="0" class="atd">
				<tr>
				<!--{eval $clicknum = 0;}-->
				<!--{loop $clicks $key $value}-->
				<!--{eval $clicknum = $clicknum + $value['clicknum'];}-->
				<!--{eval $value['height'] = $maxclicknum?intval($value['clicknum']*50/$maxclicknum):0;}-->
					<td>
						<a href="home.php?mod=spacecp&ac=click&op=add&clickid=$key&idtype=$idtype&id=$id&hash=$hash&handlekey=clickhandle" id="click_{$idtype}_{$id}_{$key}" onclick="{if $_G[uid]}ajaxmenu(this);{else}showWindow(this.id, this.href);{/if}doane(event);">
							<!--{if $value[clicknum]}-->
							<div class="atdc">
								<div class="ac{$value[classid]}" style="height:{$value[height]}px;">
									<em>{$value[clicknum]}</em>
								</div>
							</div>
							<!--{/if}-->
							<img src="{STATICURL}image/click/$value[icon]" alt="" />
							<p>$value[name]</p>
						</a>
					</td>
				<!--{/loop}-->
				</tr>
			</table>
			<script type="text/javascript">
				function errorhandle_clickhandle(message, values) {
					if(values['id']) {
						showCreditPrompt();
						show_click(values['idtype'], values['id'], values['clickid']);
					}
				}
			</script>
			<!--{if $clickuserlist}-->
			<h3 class="dec_tit mt40">
				刚表态过的朋友 (<a href="javascript:;" onclick="show_click('$idtype', '$id', '$key')">$clicknum 人</a>)
			</h3>
			<div id="trace_div" class="mt20">
				<ul id="trace_ul" class="cfix">
				<!--{loop $clickuserlist $value}-->
					<li>
						<!--{if $value[username]}-->
						<a href="home.php?mod=space&uid=$value[uid]" title="$value[clickname]"><!--{avatar($value[uid], 'small')}--></a>
						<!--{else}-->
						<div class="avt"><img src="{STATICURL}image/magic/hidden.gif" alt="$value[clickname]" /></div>
						<p>{lang anonymity}</p>
						<!--{/if}-->
					</li>
				<!--{/loop}-->
				</ul>
			</div>
			<!--{/if}-->
			<!--{if $click_multi}--><div class="pgs cl mtm">$click_multi</div><!--{/if}-->
		</div>
		<!--资讯表态结束-->
	</div>


	<!--{if $article['related']}-->
	<div id="related_article" class="relateItem">
		<h3 class="postListHd">{lang view_related}</h3>
		<ul class="bp" id="raid_div">
		<!--{loop $article['related'] $raid $rvalue}-->
			<input type="hidden" value="$raid" />
			<li><a href="{$rvalue[uri]}">{$rvalue[title]}</a></li>
		<!--{/loop}-->
		</ul>
	</div>
	<!--{/if}-->

	<script type="text/javascript" src="{$_G[setting][jspath]}home.js?{VERHASH}"></script>
	<!--{if $article['allowcomment']==1}-->
		<!--{eval $data = &$article}-->
		<!--{subtemplate portal/portal_comment}-->   
	<!--{/if}--> 

</div>

<div id="viewShare" class="viewShare">
	<div class="bdsharebuttonbox">
		<div class="wxShare"><a class="jiathis_button_weixin" href="#">微信</a></div>
		<!-- JiaThis Button BEGIN -->		
		<div class="jiathis_style_m"></div>
		<script type="text/javascript" src="http://v3.jiathis.com/code/jiathis_m.js" charset="utf-8"></script>
		<!-- JiaThis Button END -->
	</div>
</div>
<div class="popMask">
	<img src="template/xinrui_iuni/touch/images/img/share.png" />
</div>

<script type="text/javascript">
$(function() {
	$('#viewShare').mmenu({
		autoHeight	: true,
		navbar		: {
			title 	: false
		},
		offCanvas	: {
			position	: "bottom",
			zposition	: "front",
			modal		: true
		}
	});
});
$(function() {
	$("#mm-blocker").click(function(){
		$("html").removeClass();
		$(".viewShare").attr("class","viewShare mm-menu mm-offcanvas mm-bottom mm-front mm-autoheight");
	});
	$('.jiathis_button_weixin').click(function(){
		$(".popMask").show();
		$("#mm-blocker").trigger("click");
		return false;
	});
	$('.popMask').click(function(){
		$(this).hide();
		window.location.reload();
	})
});
</script>

<!--{template common/btfixed}-->
<!--{template touch/common/footer}--> 
